/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.FileInputStream;
import java.util.Arrays;

/**
 * <p>Project: jse2302 - InputStreamDemo
 * <p>Powered by webrx On 2023-06-27 09:13:14
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class InputStreamDemo {
    public static void main(String[] args) {
        try{
            var fis = new FileInputStream("user.txt");
            System.out.println(Arrays.toString(fis.readAllBytes()));
            //String txt = new String(fis.readAllBytes());
            //System.out.println(txt);
            fis.close();

        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
